package kata09.discount;

import java.math.BigDecimal;

/**
 *  9折
 */
public class DGoodsDiscount implements IGoodsDiscountStrategy {
    @Override
    public BigDecimal getGoodsDiscountPrice(int buyNumber, BigDecimal sourcePrice) {
        return sourcePrice.multiply(new BigDecimal(buyNumber)).multiply(BigDecimal.valueOf(0.9));

    }
}